package com.ruoyi.drone.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 任务接单对象 drone_task_application
 * 
 * @author ruoyi
 * @date 2024-01-01
 */
public class DroneTaskApplication extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 申请ID */
    private Long applicationId;

    /** 任务ID（关联drone_task） */
    @Excel(name = "任务ID")
    private Long taskId;

    /** 飞手ID（关联drone_user_profile） */
    @Excel(name = "飞手ID")
    private Long pilotId;

    /** 申请价格 */
    @Excel(name = "申请价格")
    private BigDecimal applicationPrice;

    /** 申请描述 */
    @Excel(name = "申请描述")
    private String applicationDesc;

    /** 工作计划 */
    @Excel(name = "工作计划")
    private String workPlan;

    /** 预计工作天数 */
    @Excel(name = "预计工作天数")
    private Integer estimatedDays;

    /** 状态（0待审核 1已通过 2已拒绝 3已取消） */
    @Excel(name = "状态", readConverterExp = "0=待审核,1=已通过,2=已拒绝,3=已取消")
    private String status;

    /** 拒绝原因 */
    @Excel(name = "拒绝原因")
    private String rejectReason;

    /** 申请时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "申请时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date applyTime;

    /** 审核时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date auditTime;

    /** 审核人 */
    @Excel(name = "审核人")
    private String auditBy;

    public void setApplicationId(Long applicationId) 
    {
        this.applicationId = applicationId;
    }

    public Long getApplicationId() 
    {
        return applicationId;
    }
    public void setTaskId(Long taskId) 
    {
        this.taskId = taskId;
    }

    public Long getTaskId() 
    {
        return taskId;
    }
    public void setPilotId(Long pilotId) 
    {
        this.pilotId = pilotId;
    }

    public Long getPilotId() 
    {
        return pilotId;
    }
    public void setApplicationPrice(BigDecimal applicationPrice) 
    {
        this.applicationPrice = applicationPrice;
    }

    public BigDecimal getApplicationPrice() 
    {
        return applicationPrice;
    }
    public void setApplicationDesc(String applicationDesc) 
    {
        this.applicationDesc = applicationDesc;
    }

    public String getApplicationDesc() 
    {
        return applicationDesc;
    }
    public void setWorkPlan(String workPlan) 
    {
        this.workPlan = workPlan;
    }

    public String getWorkPlan() 
    {
        return workPlan;
    }
    public void setEstimatedDays(Integer estimatedDays) 
    {
        this.estimatedDays = estimatedDays;
    }

    public Integer getEstimatedDays() 
    {
        return estimatedDays;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setRejectReason(String rejectReason) 
    {
        this.rejectReason = rejectReason;
    }

    public String getRejectReason() 
    {
        return rejectReason;
    }
    public void setApplyTime(Date applyTime) 
    {
        this.applyTime = applyTime;
    }

    public Date getApplyTime() 
    {
        return applyTime;
    }
    public void setAuditTime(Date auditTime) 
    {
        this.auditTime = auditTime;
    }

    public Date getAuditTime() 
    {
        return auditTime;
    }
    public void setAuditBy(String auditBy) 
    {
        this.auditBy = auditBy;
    }

    public String getAuditBy() 
    {
        return auditBy;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("applicationId", getApplicationId())
            .append("taskId", getTaskId())
            .append("pilotId", getPilotId())
            .append("applicationPrice", getApplicationPrice())
            .append("applicationDesc", getApplicationDesc())
            .append("workPlan", getWorkPlan())
            .append("estimatedDays", getEstimatedDays())
            .append("status", getStatus())
            .append("rejectReason", getRejectReason())
            .append("applyTime", getApplyTime())
            .append("auditTime", getAuditTime())
            .append("auditBy", getAuditBy())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
